/*
 * graphic.h
 *
 *  Created on: 17/10/2010
 *      Author: wendell
 */

#ifndef GRAPHIC_H_
#define GRAPHIC_H_

#define VGA_BASE (unsigned short *)0xB8000

#define COL 80
#define LIN 25

enum Colors {
	BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, WHITE,
	DARK_GRAY, BRIGHT_BLUE, BRIGHT_GREEN, BRIGHT_CYAN, BRIGHT_RED,
	BRIGHT_MAGENTA, YELLOW, BRIGHT_WHITE
};

// io/graphic.c
void initializeVideo(void);
void putchar(uchar);
void print(char[]);
void println(char[]);
void cls(void);
void setTextColor(uchar, uchar);
void restoreColor(void);
void gotoXY(int, int);
int getX(void);
int getY(void);

#endif /* GRAPHIC_H_ */
